package ar.com.jwa.domain;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.springframework.stereotype.Controller;


public class User {
	
	private Long userId;
	
	private String name;
	
	private String lastName;
	
	private String nickName;
	
	private String password;
	
	public User(String name, String lastName, String nickName, String password) {
		super();
		this.name = name;
		this.lastName = lastName;
		this.nickName = nickName;
		this.password = password;
	}
	
	public User(){
		super();
	}
	
	/**
	 * @return the name
	 */
	@Column(name="name")
	public String getName() {
		return name;
	}
	
	
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	
	/**
	 * @return the lastName
	 */
	@Column(name="lastName")
	public String getLastName() {
		return lastName;
	}
	
	
	/**
	 * @param lastName the lastName to set
	 */
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	
	/**
	 * @return the nickName
	 */

	@Column(name="nickName")
	public String getNickName() {
		return nickName;
	}
	
	/**
	 * @param nickName the nickName to set
	 */
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	
	
	/**
	 * @return the password
	 */
	@Column(name="password")
	public String getPassword() {
		return password;
	}
	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the userId
	 */
	@Id
	@GeneratedValue
	@Column(name="userId")
	public Long getUserId() {
		return userId;
	}

	/**
	 * @param userId the userId to set
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}

}
